package com.ftcs.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


@ApiModel("分页组件")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageInfo implements Serializable {
    private static final long serialVersionUID = 7913668684528317482L;

    @ApiModelProperty("当前页面号")
    private int current;
    @ApiModelProperty("每页行数")
    private int pageSize;
    @ApiModelProperty("总行数")
    private int total;

    public PageInfo(int current, int pageSize) {
        this.current = current;
        this.pageSize = pageSize;
    }
}
